import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

import home from './home'
import search from './search'
import detail from './detail'
import shopcart from './shopcart'

//对外暴露store类的实例
export default new Vuex.Store({
    //注册小仓库
    modules:{
        home,
        search,
        detail,
        shopcart
    }
})